package com.ag.score.thread;

import com.ag.score.thread.service.DataService;

public class DataThread extends  Thread{

    public void run(){

        DataService service  = new DataService();
        while(true){

            try{
                service.createData();

                Thread.sleep(1000);

            }catch(Exception e){
                e.printStackTrace();
            }


        }
    }


}
